/*    */ package com.wgcloud.controller;
/*    */ 
/*    */ import com.wgcloud.config.CommonConfig;
/*    */ import com.wgcloud.util.RestUtil;
/*    */ import com.wgcloud.util.staticvar.StaticKeys;
/*    */ import org.slf4j.Logger;
/*    */ import org.slf4j.LoggerFactory;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ import org.springframework.web.bind.annotation.ResponseBody;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/license"})
/*    */ public class LicenseController
/*    */ {
/* 26 */   private static final Logger logger = LoggerFactory.getLogger(com.wgcloud.controller.LicenseController.class);
/*    */ 
/*    */ 
/*    */   
/*    */   @Autowired
/*    */   private RestUtil restUtil;
/*    */ 
/*    */ 
/*    */   
/*    */   @Autowired
/*    */   CommonConfig commonConfig;
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   @ResponseBody
/*    */   @RequestMapping({"get"})
/*    */   public String agentList() {
/* 44 */     return StaticKeys.LICENSE_STATE;
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   @ResponseBody
/*    */   @RequestMapping({"getDaemon"})
/*    */   public String getDaemon() {
/* 57 */     return this.restUtil.get(this.commonConfig.getDaemonUrl());
/*    */   }
/*    */ }


/* Location:              /Users/zhangyongxin/soft-install/wgcloud/wgcloud-v3.3.5/server/bank/wgcloud-server-release.jar!/BOOT-INF/classes/com/wgcloud/controller/LicenseController.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */